#include <cstdio>

#include <string>

#include <iostream>

#include <vector>



using namespace std;


int main() {
	
	vector<string> vec;

	vec.push_back("helloqqq");

	vec.push_back("wo");

	vec.push_back("world7777777");

	vec.push_back("world");
	
	vec.push_back("worldixxxxxxxxxxxxxxxxxxxxxxxx");
	
	vec.push_back("worldixxxxxxxxxxxxxxxxxxxxxxxx");
	
	string* m_pCurr = &vec[0];

	for(vector<string>::iterator it = vec.begin();

			it != vec.end(); ++it) {

		//cout << *it << endl;
		//cout << *m_pCurr << endl;
		*m_pCurr = "xnq";
		m_pCurr++;

		//printf("%p\n", &*it);
		//printf("%p\n", & (*(*it).c_str()) );
	}

	cout << endl;
	
	for(vector<string>::iterator it = vec.begin();

			it != vec.end(); ++it) {
		cout << *it << endl;
	}
	return 0;
}
